﻿using System;

using SBPweb.Forge.Contracts.Components;

namespace SBPweb.Forge.Modules.Modularity
{

    public abstract class ServiceBase : InitializableBase, IService
    {

        #region Private fields

        private IModule parentModule;
        private string name;

        #endregion

        #region Constructor logic

        public ServiceBase(IModule parentModule, string name)
        {
            this.parentModule = parentModule;
            this.name = name;
        }

        #endregion

        #region Property accessors

        public IModule Module
        {
            get
            {
                return parentModule;
            }
        }

        public string Name
        {
            get
            {
                return name;
            }
        }

        #endregion

    }

}